package com.tvunetworks.center.device.mapper;

import com.tvunetworks.center.common.model.ExtendExternal;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.additional.insert.InsertListMapper;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
/**
 * @program: tvucc-aggregator
 * @author lebronchen
 * @create: 2019-11-05 14:45
 **/
public interface ExtendExternalMapper extends Mapper<ExtendExternal>, InsertListMapper<ExtendExternal> {
    /**
     *
     * @param name  name
     * @return  int
     * @throws Exception 编译异常
     */
    int countByName(@Param("name") String name) throws Exception;

    /**
     *
     * @param name name
     * @return List
     * @throws Exception 编译异常
     */
    List<ExtendExternal> selectByName(@Param("name") String name) throws Exception;

    /**
     *
     * @param rid rid
     * @param condition condition
     * @param type type
     * @return List
     * @throws Exception 编译异常
     */
    List<ExtendExternal> selectExtendExternal(@Param("rid") String rid, @Param("condition") String condition, @Param("type") String type) throws Exception;

    /**
     *
     * @param extendExternal extendExternal
     * @throws Exception 编译异常
     */
    void updateExtendExternal(ExtendExternal extendExternal) throws Exception;

}
